<?php use_stylesheet('attendance.css') ?>
<?php if(count($teachers) > 0) { ?>
    <table cellpadding="0" cellspacing="0" class="program_card_tbl" border="0" dir="rtl">
        <tr>
            <th>
                <?php echo __('Number') ?>
            </th>
            <th>
                <?php echo __('Teacher Name') ?>
            </th>
            <th>
                <?php echo __('School Name') ?>
            </th>
        </tr>
        <?php foreach ($teachers as $k => $one) { ?>
            <tr>
                <td>
                    <?php echo $k + 1 ?>
                </td>
                <td>
                    <?php $teacher = $one['Teacher'] ?>
                    <?php echo $teacher['f_name'] . ' ' . $teacher['s_name'] . ' ' . $teacher['t_name'] . ' ' . $teacher['l_name'] ?>
                </td>
                <td><?php echo $teacher['School']['name'] ?></td>
            </tr>
        <?php } ?>
    </table>
<?php } else { ?>
<center><?php echo __('there_are_no_teachers') ?></center>
<?php } ?>

